Toward General Diagnosis of Static Errors: Technical Report

نویسندگان

  • Danfeng Zhang
  • Andrew C. Myers
چکیده

We introduce a general way to locate programmer mistakes that are detected by static analyses such as type checking. The program analysis is expressed in a constraint language in which mistakes result in unsatisfiable constraints. Given an unsatisfiable system of constraints, both satisfiable and unsatisfiable constraints are analyzed, to identify the program expressions most likely to be the cause of unsatisfiability. The likelihood of different error explanations is evaluated under the assumption that the programmer’s code is mostly correct, so the simplest explanations are chosen, following Bayesian principles. For analyses that rely on programmerstated assumptions, the diagnosis also identifies assumptions likely to have been omitted. The new error diagnosis approach has been implemented for two very different program analyses: type inference in OCaml and information flow checking in Jif. The effectiveness of the approach is evaluated using previously collected programs containing errors. The results show that when compared to existing compilers and other tools, the general technique identifies the location of programmer errors significantly more accurately.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Frequency of Technical Errors in the Biopsy Samples Submitted to an Oral and Maxillofacial Pathology Laboratory

Background and aim: Following a correct biopsy protocol is crucial for accurate diagnosis of oral and maxillofacial lesions. Pre-analysis technical errors during preparation and submission of biopsies can jeopardize the diagnostic process and the related treatment plan. The aim of the present study was to evaluate pre-analysis technical errors in the biopsy samples submitted to an oral and maxi...

متن کامل

Investigation of medical errors among technical authorities of Tehran hospitals in cases referred to Tehran Commission of Legal Medicine

Background: Medical malpractice is one of the most important legal issues in medicine committed more or less by physicians. The medical staff has inadequate or deficient awareness of medical errors and their importance. Therefore, this study investigated the frequency of medical malpractices/errors resulting in death in files referred to the Iranian Legal Medicine Organization. Methods: The st...

متن کامل

نگرش کادر پرستاری نسبت به ابراز خطاهای پزشکی و ارتباط آن با خطاهای واقعی و فرضی

Despite the efforts of health care practitioners, medical errors are inevitable. Disclosure of errors is patients’ demand and right. The aim of this study was to determine the nursing staff’s attitudes about disclosure of medical errors to patients and its relationship with disclosure of actual and hypothetical errors. In this descriptive cross-sectional study, 180 of the nursing staff employed...

متن کامل

Optimization of Meshless Local Petrov-Galerkin Parameters using Genetic Algorithm for 3D Elasto-static Problems (TECHNICAL NOTE)

A truly Meshless Local Petrov-Galerkin (MLPG) method is developed for solving 3D elasto-static problems. Using the general MLPG concept, this method is derived through the local weak forms of the equilibrium equations, by using a test function, namely, the Heaviside step function. The Moving Least Squares (MLS) are chosen to construct the shape functions. The penalty approach is used to impose ...

متن کامل

Refusal in Reporting Medication Errors from the Viewpoints of Nursing Students in Arak University of Medical Sciences

Introduction: Reporting medication errors leads to saving patients' wellbeing and safety and also is counted as a valuable information source for preventing further mistakes in future. The aim of this study was to determine the causes for refusing to report medication errors from the viewpoints of nursing students. Methods: All nursing students of Arak University of Medical Sciences (n=76) wer...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2013